/**
 * 
 */
package com.nstar.orderexpress.bmo.impl;

import org.apache.log4j.Logger;

import com.nstar.common.BaseException;
import com.nstar.common.DAOException;
import com.nstar.common.DbException;
import com.nstar.model.orderexpress.OrderType;
import com.nstar.orderexpress.bmo.DataDictManager;
import com.nstar.orderexpress.dao.DataDictDAO;

/**
 * @author Administrator
 *
 */
public class DataDictManagerImpl implements DataDictManager {

	private static Logger logger = Logger.getLogger(DataDictManagerImpl.class.getName());
	
	private DataDictDAO dataDictDAO ;
	
	public DataDictDAO getDataDictDAO() {
		return dataDictDAO;
	}

	public void setDataDictDAO(DataDictDAO dataDictDAO) {
		this.dataDictDAO = dataDictDAO;
	}	
	
	public OrderType[] findOrderType() throws BaseException {
        try {
            return (OrderType[])dataDictDAO.findOrderType().toArray(new OrderType[0]);
        }
        catch (DAOException ex) {
            throw new DbException(BaseException.SUBSYSTEM_USER,
                                  BaseException.SIDE_BACKGROUND,
                                  ex);

        }
	}


	
	

}
